package com.zhenghaijin.repository;

import com.zhenghaijin.model.User;
import org.springframework.data.jpa.repository.JpaRepository;

public interface UserRepository extends JpaRepository<User, Long> {
    User findByUsername(String username);
    User findByEmail(String email); // 新增邮箱查询方法
}
